//============================================================================= // Author: lxyppc
// Based on work by: shaoziyang  
// Base file: http://www.ourdev.cn/bbs/bbs_content.jsp?bbs_sn=1148131&bbs_page_no=1&search_mode=1&search_text=AES&bbs_id=9999
//
//=============================================================================

#ifndef   _EMAES_H
#define   _EMAES_H

#include "stdint.h"

extern unsigned char block1[ 256 ]; //!< Workspace 1.
extern unsigned char block2[ 256 ]; //!< Worksapce 2.
extern unsigned char kTable[32];

extern void aesEncInit( uint16_t keybits );
extern void aesEncrypt( unsigned char * buffer, unsigned char * chainBlock );
extern void aesDecInit( uint16_t keybits );
extern void aesDecrypt( unsigned char * buffer, unsigned char * chainBlock );

#endif

